import java.util.Locale;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xwl
 * Date: 2023-04-17
 * Time: 9:26
 */
public class Test {
    public static void main(String[] args) {
        //
        try {
            // 输入
            Scanner scan = new Scanner(System.in);
            System.out.println("请输入用户名和密码：");
            String name = scan.next();
            String passWord = scan.next();
            // 调用方法
            Login admin = new Login(name,passWord);
        }catch (UserPasswordException userPasswordException) {
            userPasswordException.printStackTrace();
        }catch (UserNameException userNameException) {
            userNameException.printStackTrace();
        }finally {
            // 释放资源
        }
    }
}
